#!/bin/bash -v

commitId=$(git rev-parse --short HEAD)
tagName=$(date '+%y%m%d-%H%M')-${commitId}

tarName=jenkins-test-${tagName}.tar

echo '***************************************'
echo 'tarName:'${tarName}
echo '***************************************'

imageName=reg.supremind.info/yangjun1/jenkins-test:${tagName}
echo 'imageName:'${imageName}

mvn clean package docker:build -DskipTests -Dimage.taggedName=$imageName

#docker save ${imageName} -o ${tarName}
#docker push ${imageName}


